<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var person = {
      name: "wunwu",
      age: 18,
      eat: function(){
          alert("干饭~~");
      }
    }
    alert(person.name);
    alert(person.age);
    person.eat();


</script>

</body>
</html>